package com.dhcc.DRGsHosp.facade.dto;

import java.io.Serializable;
import java.util.Date;

public class ScheduleJobDTO implements Serializable {

	private static final long serialVersionUID = -8874434914822649679L;

	//主键 
	private String jobId;
	/**
	 * 任务名称
	 */
	private String jobName;
	/**
	 * 任务分组名称
	 */
	private String jobGroup;
	/**
	 * 任务状态 是否启动任务
	 */
	private String jobStatus;
	/**
	 * 任务执行时间cron表达式
	 */
	private String cronExpression;
	/**
	 * 描述
	 */
	private String description;
	/**
	 * 任务执行时调用哪个类的方法 包名+类名
	 */
	private String beanClass;
	/**
	 * 任务是否有状态
	 */
	private String isConcurrent;
	 /**
	 * 任务调用的方法名
	 */
	private String methodName;
	/**
	 * 向任务调用的方法传递的参数
	 */
	private String jobData;
	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 修改时间
	 */
	private Date updateTime;
	
	/**
	 * cron转化的时间
	 */
	private String jobExecuteTime;

	
	public String getJobExecuteTime() {
		return jobExecuteTime;
	}


	public void setJobExecuteTime(String jobExecuteTime) {
		this.jobExecuteTime = jobExecuteTime;
	}


	public String getJobData() {
	  return jobData;
	}
	
	
	public void setJobData(String jobData) {
	  this.jobData = jobData;
	}
	
	public String getJobId() {
	  return jobId;
	}
	
	
	public void setJobId(String jobId) {
	  this.jobId = jobId;
	}
	
	
	public Date getCreateTime() {
	  return createTime;
	}
	
	
	public void setCreateTime(Date createTime) {
	  this.createTime = createTime;
	}
	
	
	public Date getUpdateTime() {
	  return updateTime;
	}
	
	
	public void setUpdateTime(Date updateTime) {
	  this.updateTime = updateTime;
	}
	
	
	public String getJobName() {
	  return jobName;
	}
	
	
	public void setJobName(String jobName) {
	  this.jobName = jobName;
	}
	
	
	public String getJobGroup() {
	  return jobGroup;
	}
	
	
	public void setJobGroup(String jobGroup) {
	  this.jobGroup = jobGroup;
	}
	
	
	public String getJobStatus() {
	  return jobStatus;
	}
	
	
	public void setJobStatus(String jobStatus) {
	  this.jobStatus = jobStatus;
	}
	
	
	public String getCronExpression() {
	  return cronExpression;
	}
	
	
	public void setCronExpression(String cronExpression) {
	  this.cronExpression = cronExpression;
	}
	
	
	public String getDescription() {
	  return description;
	}
	
	
	public void setDescription(String description) {
	  this.description = description;
	}
	
	
	public String getBeanClass() {
	  return beanClass;
	}
	
	
	public void setBeanClass(String beanClass) {
	  this.beanClass = beanClass;
	}
	
	
	public String getIsConcurrent() {
	  return isConcurrent;
	}
	
	
	public void setIsConcurrent(String isConcurrent) {
	  this.isConcurrent = isConcurrent;
	}
	
	public String getMethodName() {
	  return methodName;
	}
	
	
	public void setMethodName(String methodName) {
	  this.methodName = methodName;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((jobId == null) ? 0 : jobId.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ScheduleJobDTO other = (ScheduleJobDTO) obj;
		if (jobId == null) {
			if (other.jobId != null)
				return false;
		} else if (!jobId.equals(other.jobId))
			return false;
		return true;
	}

}
